package br.com.agoravai16072011.model;

// default package
// Generated 22/05/2011 22:05:13 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Convites generated by hbm2java
 */
@Entity
@Table(name = "convites", catalog = "rvsp", uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class Convites implements java.io.Serializable {

	private Long id;
	private String name;
	private long nconvites;
	private Date dtconfirmacao;

	public Convites() {
	}

	public Convites(String name, long nconvites) {
		this.name = name;
		this.nconvites = nconvites;
	}

	public Convites(String name, long nconvites, Date dtconfirmacao) {
		this.name = name;
		this.nconvites = nconvites;
		this.dtconfirmacao = dtconfirmacao;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name", unique = true, nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "nconvites", nullable = false)
	public long getNconvites() {
		return this.nconvites;
	}

	public void setNconvites(long nconvites) {
		this.nconvites = nconvites;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dtconfirmacao", length = 0)
	public Date getDtconfirmacao() {
		return this.dtconfirmacao;
	}

	public void setDtconfirmacao(Date dtconfirmacao) {
		this.dtconfirmacao = dtconfirmacao;
	}

}
